import json

from config import base_path


def read_json(filename):

    with open(filename, "r", encoding="utf8") as file:
        data = json.load(file)
        # print(data)

        data_list = []
        for n in data:
            val = tuple(n.values())
            data_list.append(val)

        return data_list



if __name__ == '__main__':
    filename = base_path+"/data/tpshop_register.json"
    print(read_json(filename))
